package com.prj.dy.common
{
	import flash.events.Event;
	import flash.events.EventDispatcher;
	
	public class DYEvent extends Event
	{
		
		// PgLayerThumbsPanel events
		private static const 	PLTP : String 							= "PgLayerThumbsPanel";
		public static const 	PG_LAYER_THUMBS_INDEX_CHANGE :String 	= PLTP + "PgLayerThumbsIndexChange";  		
		

		// PgLayerThumbsPanel events
		private static const 	CEP : String 							= "CustomElemPanel";
		public static const 	BACKGROUND_INDEX_CHANGE :String 	= CEP + "BackgroundIndexChange";  		
		
		
		
		private static const PGVIEW:String 							= "PgView";
		public static const  RENDERER_ADD_TO_PGVIEW:String			= PGVIEW + "RendererAddToPgView";
		public static const  PG_ELEM_RENDERER_CLICK:String			= PGVIEW + "PgElemRenderer_Click";		
		
		
		
		public function DYEvent(from:EventDispatcher, type:String, data:Object=null, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			eventFrom = from;			
			eventData = data;
		}		
		
		private var _eventFrom:Object;

		public function get eventFrom():Object
		{
			return _eventFrom;
		}

		public function set eventFrom(value:Object):void
		{
			_eventFrom = value;
		}
		
		
		private var _eventData:Object;
		
		public function get eventData():Object
		{
			return _eventData;
		}
		
		public function set eventData(value:Object):void
		{
			_eventData = value;
		}

	}
}